﻿using System;
using System.Text;
using Nancy.Responses.Negotiation;
using QQ2564874169.WebFx.Nancy.Responses;

namespace QQ2564874169.WebFx.Nancy.Web
{
    public abstract class FxWebApi : FxController
    {
        protected override Negotiator GetView(string path, object model)
        {
            throw new NotSupportedException();
        }

        protected virtual JsonResponse Result(object data, Encoding encoding = null)
        {
            return new JsonResponse(data, encoding);
        }
    }
}
